package com.ek.kademlia.protocol.impl;

import com.ek.kademlia.protocol.FindNodeRequest;

public class DefaultFindNodeRequest implements FindNodeRequest {

    private static final long serialVersionUID = 4439689477304565925L;
    private byte[] nodeID;
    private byte[] messageID;
    private byte[] queryID;

    public DefaultFindNodeRequest(byte[] nodeID, byte[] messageID, byte[] queryID) {
        this.nodeID = nodeID;
        this.messageID = messageID;
        this.queryID = queryID;
    }

    public DefaultFindNodeRequest() {
    }

    public byte[] getNodeID() {
        return nodeID;
    }

    public byte[] getMessageID() {
        return messageID;
    }

    public void setNodeID(byte[] nodeID) {
        this.nodeID = nodeID;
    }

    public void setMessageID(byte[] messageID) {
        this.messageID = messageID;
    }

    public String getMessageClass() {
        return FindNodeRequest.class.getCanonicalName();
    }

    public byte[] getQueryID() {
        return queryID;
    }

    public void setQueryID(byte[] queryID) {
        this.queryID = queryID;
    }

}
